package cn.com.infinitus.uits.api;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import cn.com.infinitus.uits.auto.uits.BaseDao;

/**
 * 
 * @author 潘科材
 * 获取功能下载情况数据
 */
@Controller
@RequestMapping("/whitelist")
public class Whitelist {
	@RequestMapping("/")
    public @ResponseBody String getList(@RequestParam(value="app",required=false)String app) {  
		System.out.println("--------whitelist----in---------------");
		JSONObject json = new JSONObject();
		JSONArray jarr = new JSONArray();
		jarr.add("calendarAdd");
		jarr.add("calendarDetails");
		jarr.add("calendarEdit");
		jarr.add("index");
		JSONObject json_sub_2 = new JSONObject();
		json_sub_2.put("module_calendarBf", jarr);
		JSONObject json_sub_1 = new JSONObject();
		json_sub_1.put("activity", json_sub_2);
		
		
		return json.toJSONString();  
    } 
}
